import request from '@/utils/request.js'
export function getRoles(page, pagesize) {
  return request({
    url: '/sys/role',
    params: { page, pagesize }
  })
}

export const delRole = id => request.delete(`/sys/role/${id}`)
export const addRole = data => request.post(`/sys/role`, data)
export const updateRole = data => request.put(`/sys/role/${data.id}`, data)
